﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DownloadTaobaoAPI
{
    public class Client
    {
        public void Main()
        {
            new DownLoadTask().SyncOrders("");  //用户首次登陆

            IDownload downloadApi = new WangWangDownload();
            downloadApi.SyncData();
        }

        /// <summary>
        /// 定时器调用
        /// </summary>
        public void SyncByTimer()
        {
            if (true)
            {
                new DownLoadTask().SyncOrdersPeriod();
            }
        }
    }
}